﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TenyGlobalSite.admin
{
    public partial class main : System.Web.UI.Page
    {
        protected string adminName = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            /*清除页面缓存*/
            Response.Buffer = true;
            Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
            Response.Expires = 0;
            Response.CacheControl = "no-cache";
            Response.AddHeader("Pragma", "No-Cache");
            /*End*/
        }

        protected void Page_PreRender(object sender, EventArgs e)
        {
            adminName = Session["admin_name"] == null ? "" : Session["admin_name"].ToString();
        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            if (Cache["TopNav"] != null)
            {
                Cache.Remove("TopNav");
            }
        }
    }
}